package com.wl.entity;

import java.util.List;

public class Dept {
    private Integer deptid;

    private String deptname;

    private String deptintro;

    private String deptleader;

    private Integer deptstatus;
    
   //新增属性用于和员工的关联查询
    private List<Emp> emp;
    
    public List<Emp> getEmp() {
		return emp;
	}

	public void setEmp(List<Emp> emp) {
		this.emp = emp;
	}

	//无参构造
    public Dept() {
		// TODO Auto-generated constructor stub
	} 

    @Override
	public String toString() {
		return "Dept [deptid=" + deptid + ", deptname=" + deptname + ", deptintro=" + deptintro + ", deptleader="
				+ deptleader + ", deptstatus=" + deptstatus + ", emp=" + emp + "]";
	}

	//带参构造
	public Dept(Integer deptid, String deptname, String deptintro, String deptleader, Integer deptstatus) {
		super();
		this.deptid = deptid;
		this.deptname = deptname;
		this.deptintro = deptintro;
		this.deptleader = deptleader;
		this.deptstatus = deptstatus;
	}

	public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname == null ? null : deptname.trim();
    }

    public String getDeptintro() {
        return deptintro;
    }

    public void setDeptintro(String deptintro) {
        this.deptintro = deptintro == null ? null : deptintro.trim();
    }

    public String getDeptleader() {
        return deptleader;
    }

    public void setDeptleader(String deptleader) {
        this.deptleader = deptleader == null ? null : deptleader.trim();
    }

    public Integer getDeptstatus() {
        return deptstatus;
    }

    public void setDeptstatus(Integer deptstatus) {
        this.deptstatus = deptstatus;
    }
}